.class Lcom/brixd/niceapp/community/activity/CommunityDetailActivity$1;
.super Ljava/lang/Object;
.source "CommunityDetailActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;->updateShowTimes()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    .prologue
    .line 82
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 2
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 87
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 82
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 6
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 91
    const-string v1, "times"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v0

    .line 92
    .local v0, "showTimes":I
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;
    invoke-static {v1}, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;->access$000(Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;)Lcom/brixd/niceapp/model/BaseAppModel;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/model/BaseAppModel;->setShowTimes(I)V

    .line 93
    sget-object v1, Lcom/brixd/niceapp/util/LocalCacheUtils;->ViewedCommunityAppsSet:Ljava/util/HashSet;

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;->access$100(Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;)Lcom/brixd/niceapp/model/BaseAppModel;

    move-result-object v2

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    .line 94
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    const/4 v2, 0x1

    # setter for: Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;->mIsDirty:Z
    invoke-static {v1, v2}, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;->access$202(Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;Z)Z

    .line 95
    return-void
.end method
